/*    */ package com.zimbra.cs.imap;
/*    */ 
/*    */ import java.util.List;
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ public class StoreCommand
/*    */   extends ImapCommand
/*    */ {
/*    */   private String sequenceSet;
/*    */   private List<String> flagNames;
/*    */   private ImapHandler.StoreAction operation;
/*    */   int modseq;
/*    */   
/*    */   public StoreCommand(String sequenceSet, List<String> flagNames, ImapHandler.StoreAction operation, int modseq)
/*    */   {
/* 32 */     this.sequenceSet = sequenceSet;
/* 33 */     this.flagNames = flagNames;
/* 34 */     this.operation = operation;
/* 35 */     this.modseq = modseq;
/*    */   }
/*    */   
/*    */   public int hashCode()
/*    */   {
/* 40 */     int prime = 31;
/* 41 */     int result = 1;
/* 42 */     result = 31 * result + (this.flagNames == null ? 0 : this.flagNames.hashCode());
/* 43 */     result = 31 * result + this.modseq;
/* 44 */     result = 31 * result + (this.operation == null ? 0 : this.operation.hashCode());
/* 45 */     result = 31 * result + (this.sequenceSet == null ? 0 : this.sequenceSet.hashCode());
/* 46 */     return result;
/*    */   }
/*    */   
/*    */   public boolean equals(Object obj)
/*    */   {
/* 51 */     if (this == obj) {
/* 52 */       return true;
/*    */     }
/* 54 */     if (obj == null) {
/* 55 */       return false;
/*    */     }
/* 57 */     if (getClass() != obj.getClass()) {
/* 58 */       return false;
/*    */     }
/* 60 */     StoreCommand other = (StoreCommand)obj;
/* 61 */     if (this.flagNames == null) {
/* 62 */       if (other.flagNames != null) {
/* 63 */         return false;
/*    */       }
/* 65 */     } else if (!this.flagNames.equals(other.flagNames)) {
/* 66 */       return false;
/*    */     }
/* 68 */     if (this.modseq != other.modseq) {
/* 69 */       return false;
/*    */     }
/* 71 */     if (this.operation == null) {
/* 72 */       if (other.operation != null) {
/* 73 */         return false;
/*    */       }
/* 75 */     } else if (!this.operation.equals(other.operation)) {
/* 76 */       return false;
/*    */     }
/* 78 */     if (this.sequenceSet == null) {
/* 79 */       if (other.sequenceSet != null) {
/* 80 */         return false;
/*    */       }
/* 82 */     } else if (!this.sequenceSet.equals(other.sequenceSet)) {
/* 83 */       return false;
/*    */     }
/* 85 */     return true;
/*    */   }
/*    */ }


/* Location:              /home/mint/zimbrastore.jar!/com/zimbra/cs/imap/StoreCommand.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       0.7.1
 */